package com.ouc.service;

import com.ouc.entity.CartItem;
import com.ouc.vo.OutCartItem;
import com.sun.xml.internal.messaging.saaj.packaging.mime.internet.InternetHeaders;

import java.util.List;

/**
 * @Name: ShoppingCarService
 * @Description:
 * @Author: Mr.Tong
 */
public interface CartItemService {
    public Boolean insertItem(CartItem cartItem);

    public CartItem getItemByFrameCodeAndUserId(String frameCode, Integer userId);

    public Boolean updateItem(CartItem cartItem);
    public List<OutCartItem> getAllCartItems(Integer userId);

    public List<OutCartItem> getAllCartItemsByPaging(Integer userId,Integer page,Integer limit);


    public CartItem getItem(String frameCode, Integer userId);




}
